﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="Chair.aspx.cs" Inherits="Admin_Chair" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table style="width:100%;">
            <tr>
                <td class="style1" colspan="2" 
                        style="border-bottom-style: outset; border-bottom-width: 1px; height: 48px;">
                    <asp:Label ID="lblTitle2" runat="server" Font-Size="16pt" ForeColor="#0099FF" 
                            Text="Add Chair"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                        &nbsp;</td>
                <td>
                        &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                    <asp:Label ID="lblChairID" runat="server" Text="ChairID:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtChairID" runat="server" Enabled="False" Width="236px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px; height: 27px;">
                    <asp:Label ID="lblCinemaID" runat="server" Text="Cinema Name:"></asp:Label>
                </td>
                <td style="height: 27px">
                    <asp:DropDownList ID="ddlCinemaName" runat="server" Height="20px" Width="242px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px; height: 27px;">
                    <asp:Label ID="lblTier" runat="server" Text="Tier:"></asp:Label>
                </td>
                <td style="height: 27px">
                    <asp:TextBox ID="txtTier" runat="server" Height="23px" TextMode="Number" 
                        Width="237px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                        <asp:Label ID="lblChairNumber" runat="server" Text="ChairNumber:"></asp:Label>
                </td>
                <td>
                        <asp:TextBox ID="txtChairNumber" runat="server" Height="22px" Width="236px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                    <asp:Label ID="lblStatusC" runat="server" Text="Status:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlStatus" runat="server" Height="16px" Width="244px">
                        <asp:ListItem Value="0">Using</asp:ListItem>
                        <asp:ListItem Value="1">Fail	</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                    <asp:Label ID="lblNotes" runat="server" Text="Notes:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNotes" runat="server" Height="63px" TextMode="MultiLine" 
                        Width="237px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                    <asp:Label ID="lblError" runat="server" ForeColor="#FF3300" Text="Label" 
                            Visible="False"></asp:Label>
                </td>
                <td>
                        &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" style="width: 132px">
                        &nbsp;</td>
                <td>
                    <asp:Button ID="btnSummit" runat="server" BorderStyle="Inset" BorderWidth="1px" 
                            onclick="btnSummit_Click" Text="Summit" />
                </td>
            </tr>
        </table>
        <br />
        <table style="width: 100%; height: 242px;">
            <tr>
                <td style="height: 46px; border-bottom-style: outset; border-bottom-width: 1px;">
                    <asp:Label ID="lblCinema" runat="server" Font-Bold="True" Font-Size="12pt" 
                            ForeColor="#99CCFF" Text="Chair List by Cinema"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="height: 32px">
                    <asp:Label ID="lblSearchC" runat="server" Text="Cinema:"></asp:Label>
                    <asp:DropDownList ID="ddlCinemaS" runat="server" style="margin-left: 76px" 
                        Width="272px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="height: 32px">
                    <asp:Label ID="lblSearch0" runat="server" Text="Search Chair ID:"></asp:Label>
                    <asp:TextBox ID="txtSearch" runat="server" Height="21px" 
                        style="margin-left: 31px" Width="265px"></asp:TextBox>
                    <asp:Button ID="btnSearch0" runat="server" BorderStyle="Inset" 
                        BorderWidth="1px" onclick="btnSearch0_Click" style="margin-left: 98px" 
                        Text="Search" />
                </td>
            </tr>
            <tr>
                <td style="height: 24px">
                    <asp:Label ID="lblError1" runat="server" ForeColor="Red" Text="Label" 
                            Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="height: 15px">
                    <asp:GridView ID="grvData" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ChairID" 
                            onrowcancelingedit="grvDataCancel" onrowediting="grvDataEdit" 
                            onrowupdating="grvDataUpload" Width="99%" 
                        onpageindexchanging="grvIndex">
                        <Columns>
                            <asp:TemplateField HeaderText="ChairID">
                                <ItemTemplate>
                                    <asp:Label ID="lblChairID" runat="server" 
                                            Text='<%# Eval("ChairID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Cinema">
                                <ItemTemplate>
                                    <asp:Label ID="lblCinemaID" runat="server" 
                                            Text='<%# Cinema(Eval("CinemaID")) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Tier">
                                <ItemTemplate>
                                    <asp:Label ID="lblTier" runat="server" 
                                            Text='<%# Eval("Tier") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="ChairNumber">
                                <ItemTemplate>
                                    <asp:Label ID="lblChairNumber" runat="server" Text='<%# Eval("ChairNumber") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Status">
                                <EditItemTemplate>
                                    <asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="127px">
                                        <asp:ListItem Value="0">Using</asp:ListItem>
                                        <asp:ListItem Value="1">Fail</asp:ListItem>
                                    </asp:DropDownList>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblStatus" runat="server" Text='<%# Status(Eval("StatusC")) %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Notes">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="lblNotes" runat="server" Text='<%# Eval("Notes") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField ShowEditButton="True" />
                        </Columns>
                        <HeaderStyle CssClass="header" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="height: 12px">
                        </td>
            </tr>
            <tr>
                <td style="height: 12px">
                        &nbsp;</td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

